﻿using System;
namespace 手机项目;
class Programe
{
    static void Main(string[] args)
    {
        phone[] phones = new phone[34];
        phones[0] = new phone("许晨", "vivo x999", "18062934696");
        phones[1] = new phone("吴梅", "vivo", "13962934696");
        phones[2] = new phone("土土", "iqoo", "13062934696");
        phones[3] = new phone();
        // for (int i = 0; i < phones.Length; i++)
        // {
        //     phones[i] = new phone();
        // }
        // phones[0].拥有者 = "吴梅";
        // phones[0].型号 = "vivo";
        // phones[0].号码 = "13962934696";

        // phones[1].拥有者 = "许晨";
        // phones[1].型号 = "vivo x999";
        // phones[1].号码 = "18062934696";

        // phones[2].拥有者 = "土土";
        // phones[2].型号 = "iqoo";
        // phones[2].号码 = "13062934696";
        for (int i = 0; i < phones.Length; i++)
        {
            Console.WriteLine(phones[i].获取信息());
        }

    }
}